package com.heima.apis.admin;

import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import org.apache.poi.xddf.usermodel.chart.RadarStyle;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("leadnews-wemedia")
public interface WmSensitiveClient {
    //敏感词分页
    @PostMapping("/api/v1/sensitive/list")
    public ResponseResult list(@RequestBody SensitiveDto dto);

    //频道分页
    @PostMapping("/api/v1/channel/list")
    public ResponseResult list(@RequestBody ChannelDto dto);

    @PostMapping("/api/v1/channel/save")
    public ResponseResult save(@RequestBody WmChannel wmChannel);

    @GetMapping("/api/v1/channel/del/{id}")
    public ResponseResult delete(@PathVariable Integer id);

    @PostMapping("/api/v1/channel/update")
    public ResponseResult update(@RequestBody WmChannel wmChannel);
}
